source /etc/profile;source ~/.bash_profile;source ~/.bashrc;
DIR="$( cd "$( dirname "$0"  )" && pwd  )"
resFile=`basename $DIR`
rm -rf $DIR/$resFile
unzip -o $DIR/$resFile.war -d $DIR/$resFile

echo $DIR/$resFile 8080
nohup java -jar $DIR/i2f-jetty.jar $DIR/$resFile 8080 ""> $DIR/$resFile.out 2>&1 &
echo $! > $DIR/$resFile.pid
echo "tail -200f $DIR/$resFile.out"